package com.js.blog.exception;

/**
 * @author yanglin
 * @create 2024-02-29 15:03 星期四
 * description:
 */
public enum AuthErrorCode implements IErrorCode {

    PASSWORD_NOT_MATCH(30001,"密码输入错误"),
    USER_NOT_EXIST(30002,"用户不存在");

    private long code;
    private String message;


    AuthErrorCode(long code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public long getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
